package com.schoolcloud.social.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.schoolcloud.social.entity.SocPostTagRelations;
import com.schoolcloud.social.entity.SocPostTags;
import com.schoolcloud.social.service.SocPostTagRelationsService;
import com.schoolcloud.social.mapper.SocPostTagRelationsMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author hongmizfb
* @description 针对表【soc_post_tag_relations(标签与帖子关联表)】的数据库操作Service实现
* @createDate 2025-03-08 22:30:29
*/
@Service
public class SocPostTagRelationsServiceImpl extends ServiceImpl<SocPostTagRelationsMapper, SocPostTagRelations>
    implements SocPostTagRelationsService{
    @Override
    public List<SocPostTagRelations> getListByPostId(Integer postId) {
        return lambdaQuery().eq(SocPostTagRelations::getPostId, postId).list();
    }
}




